package com.relife.common.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.relife.core.qbc.QbcQuery;
import org.hibernate.criterion.Order;



public class ExcelParam implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7349031023248183842L;
	private boolean isQbc;
	private QbcQuery qbc;
	private String sql;
	private List<Object> param;
	private List<ExcelCell> cells = new ArrayList<ExcelCell>();
	private String sheetName;
	private Order order;

	public ExcelParam() {
		super();
	}

	public QbcQuery getQbc() {
		if (order != null) {
			qbc.addOrder(order);
		}
		return qbc;
	}

	public void setQbc(QbcQuery qbc) {
		this.qbc = qbc;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}

	public List<Object> getParam() {
		return param;
	}

	public void setParam(List<Object> param) {
		this.param = param;
	}

	public boolean isQbc() {
		return isQbc;
	}

	public void setQbc(boolean isQbc) {
		this.isQbc = isQbc;
	}

	public List<ExcelCell> getCells() {
		return cells;
	}

	public void setCells(List<ExcelCell> cells) {
		this.cells = cells;
	}

	public String getSheetName() {
		return sheetName;
	}

	public void setSheetName(String sheetName) {
		this.sheetName = sheetName;
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

}
